var crypto = require('crypto');
var md5 = crypto.createHash('md5');
md5.update('123456');
console.log(md5.digest('hex').toString());

var sha1 = crypto.createHash('sha1');